package com.example.demo;

import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableEncryptableProperties
//开启注解（指定对应的资源需要权限才能访问）
@EnableGlobalMethodSecurity(prePostEnabled = true)
@SpringBootApplication
@EnableSwagger2
@EnableAsync // 开启异步调用
@EnableScheduling // 1.开启定时任务
public class DemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run ( DemoApplication.class, args );
        System.out.println ( run );
    }

}
